<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>按钮特效</title>
  <style>
    body {
      margin: auto;
    }

    #app {
      width: 100px;
      height: 30px;
      display: block;
      margin: auto;
      border-radius: 5px;
      background-color: #000;
      color: #fff;
      border: none;
      transition: background-color 2s, transform 2s;
    }

    #app:hover {
      background-color: pink;
      transform: translateY(15px);
    }
  </style>
</head>

<body>
  <div>
    <button id="app">
      这是按钮
    </button>
  </div>
</body>

</html>